package com.zhufeng.jvm.classloader;

public class MyTest9 {

	static {
		System.out.println("MyTest9 static block");
	}
	
	public static void main(String[] args) {
		System.out.println(Child9.b);
		// 打印 MyTest9 static block,	Parent9 static block,	child9 static block 5
	}

}

class Parent9 {
	static int a = 5;
	
	static {
		System.out.println("Parent9 static block");
	}
}

class Child9 extends Parent9 {
	static int b = 5;
	
	static {
		System.out.println("child9 static block");
	}
}